HAL I2S state and error functions migration

This section provides information about the HAL I2S state and error functions migration.

HAL I2S get state

HAL1

HAL2

HAL_I2S_GetState(const I2S_HandleTypeDef *hi2s);
HAL_I2S_GetState(const hal_i2s_handle_t *hi2s);

Related concept: Revised and optimized HAL state machine


HAL I2S get error

HAL1

HAL2

HAL_I2S_GetError(I2S_HandleTypeDef *hi2s);
HAL_I2S_GetLastErrorCodes(const hal_i2s_handle_t *hi2s);

Related concept: Revised and optimized HAL error management